package com.ibeifeng.io;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class TestBufferedReader {
	public static void main(String[] args) {
		BufferedReader br = null;
		try {
			br = new BufferedReader(new InputStreamReader(System.in));
			String str = null;
			while((str=br.readLine())!=null){
				if("exit".equals(str)){
					break;
				}
				System.out.write(str.getBytes(), 0, str.length());
			}
		} catch (IOException e) {
			e.printStackTrace();
		} finally{
			
		}
	}
}
